{% extends "./inc/base.html" %} {% block content %}



<!-- -->
<section>
    <div class="container">
<div class="row bg1x1">
        <!-- LEFT -->
        {% include "./inc/user_left.html" %}
        <!-- RIGHT -->
        <div class="col-lg-10 col-md-10 col-sm-8">

            <h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
                {{controller.meta_title}}</h4>

            <ul class="nav nav-tabs nav-bottom-border">
                <li {%if controller.get('model')==null%}class="active"{%endif%}><a href="/center/publish/approval">全部</a></li>
                {%for m in model%}
                <li {% if controller.get('model') == m.id%}class="active"{%endif%}><a href="/center/publish/approval/?model={{m.id}}" >{{m.title}}</a></li>
                {%endfor%}

            </ul>
            <div class="table-responsive">
                <table class="table order-tb">
                    <thead>
                    <tr>
                        <th>标题</th>
                        <th>时间</th>
                        <th>操作</th>

                    </tr>
                    </thead>
                    {% for item in list.data %}
                    <tr>

                        <td>{{item.title}} </td>
                        <td>{{item.time | moment('YYYY-MM-DD HH:mm:ss')}}</td>


                        <td>
                            <a href="/center/publish/approvaldetails/?id={{item.id}}" class="btn btn-rounded btn-xs btn-icon btn-default" data-toggle="ajaxModal" title=""><i class="fa fa-search-plus"></i>详情</a>
                            <a href="/center/publish/approvaldel/?id={{item.id}}" class="btn btn-rounded btn-xs btn-icon btn-default ajax-get confirm"  title="" ><i class="fa fa-close"></i>删除</a>

                        </td>
                    </tr>
                    {% else %}
                    <tbody>
                    <tr>
                        <td colspan="5">
                            <div class="alert alert-warning alert-block">
                                <button data-dismiss="alert" class="close" type="button">×</button>
                                <p>This would display if the 'item' collection were empty</p>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                    {% endfor %}
                </table>
            </div>
            <!-- PAGINATION -->
            <div class="text-right">
                <!-- Pagination Default -->
                {{pagination | safe}}
                <!-- /Pagination Default -->
            </div>
            <!-- /PAGINATION -->
        </div>
</div>
    </div>
</section>
<!-- / -->
{% endblock %}
{% block script %}

{% endblock %}